package jp.sourceforge.akjrcp.util;

public class FTPInfo {
private String name="Undefined";
private String host="";
private String dir="";
private String user="";
private String password="";
private int port;
public String getDir() {
	return dir;
}
public void setDir(String dir) {
	this.dir = dir;
}
public String getHost() {
	return host;
}
public void setHost(String host) {
	this.host = host;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public String getPassword() {
	return password;
}
public void setPassword(String password) {
	this.password = password;
}
public int getPort() {
	return port;
}
public void setPort(int port) {
	this.port = port;
}
public String getUser() {
	return user;
}
public void setUser(String user) {
	this.user = user;
}
public String toLabel(){
	return name;
}

public void copyValue(FTPInfo newInfo){
	this.setDir(newInfo.getDir());
	this.setHost(newInfo.getHost());
	this.setUser(newInfo.getUser());
	this.setPassword(newInfo.getPassword());
	this.setName(newInfo.getName());
	this.setPort(newInfo.getPort());
}
}
